home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7161 < prev    next >
Encoding:
Text File  |  1996-08-05  |  975 b   |  25 lines

  1. Path: litc.lockheed.com!BHURSCH
  2. From: BHURSCH@litc.lockheed.com (Bob Hursch)
  3. Newsgroups: comp.lang.c
  4. Subject: DLL Syntax Error in C
  5. Date: Thu, 15 Feb 1996 10:23:25 UNDEFINED
  6. Organization: Lockheed Martin M & S, Sunnyvale, CA
  7. Distribution: world
  8. Message-ID: <BHURSCH.31.00AEBF56@litc.lockheed.com>
  9. NNTP-Posting-Host: 192.203.43.155
  10. Keywords: DLL C ERROR
  11. X-Newsreader: Trumpet for Windows [Version 1.0 Rev B final beta #1]
  12.  
  13. I am trying to learn about utilizing a DLL (written in C) from Visual Basic.  
  14. I have attempted to compile a sample from a book, but get a syntax error
  15. I cannot fathom.  On the line:
  16.  
  17. extern "c" 
  18.  
  19. I receive the error "Invalid syntax found at "string".  The extern appears
  20. directly berfore my first set of braces defining my WEP (Windows
  21. Exit Point).  I am using Visual C++ V1.51 withouy ant Microsoft Classes
  22. specified.  My understanding is that the extern statement informs 
  23. VB that the code is written in C, not C++.  Any help would be appreciated.
  24.  
  25.